Skip to content

Initial expanded headers view#288

Open
asoucar wants to merge 1 commit intothunderbird:mainfrom
asoucar:extended-sender-view
Open

Initial expanded headers view#288
asoucar wants to merge 1 commit intothunderbird:mainfrom
asoucar:extended-sender-view

Conversation

@asoucar
Copy link
Copy Markdown
Contributor

@asoucar asoucar commented Mar 27, 2026

Includes sender, reply to, cc, etc

Closes #259

Includes sender, reply to, cc, etc
@asoucar asoucar requested a review from a team as a code owner March 27, 2026 20:44
@asoucar asoucar requested review from wmontwe and removed request for a team March 27, 2026 20:44

init(email: TempEmail) {
self.senderText = email.senderText
self.senderText = email.from[0].label ?? email.from[0].value
Copy link
Copy Markdown

@maloneyjay1 maloneyjay1 Mar 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of direct indexing a potentially empty array, could we take the opportunity to guard the pattern and provide a nice fail return before assignment?

guard let firstFromIndex = email.from.first else { self.senderText = "Sender Unknown" return } self.senderText = firstFromIndex.label ?? firstFromIndex.value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sender/Recipient header

3 participants